<?php
include ('header.php');

if (!isUserLogged()) header ('Location: ?page=pocetna');

$smarty->assign('media', siteinfo('media'));
include('bottom_banners.php');
include('chat.php');
include('sidebar_banners.php');

$username = $user['username'];



$TotalUserColourGallery = getTotalUserColourGallery($username);
$paginatorUserColourGallery = new Paginator;
$paginatorUserColourGallery->items_total = $TotalUserColourGallery;
$paginatorUserColourGallery->mid_range = 5;
$paginatorUserColourGallery->paginate();
$UserColourGalleryPhotos = getUserColourGalleryPhotos ($username, $paginatorUserColourGallery->limit);
$smarty->assign('paginatorUserColourGallery', $paginatorUserColourGallery->display_pages());
$smarty->assign('UserColourGalleryPhotos', $UserColourGalleryPhotos);


$TotalUserBlackandGrayGallery = getTotalUserBlackandGrayGallery($username);
$paginatorUserBlackandGrayGallery = new Paginator;
$paginatorUserBlackandGrayGallery->items_total = $TotalUserBlackandGrayGallery;
$paginatorUserBlackandGrayGallery->mid_range = 5;
$paginatorUserBlackandGrayGallery->paginate();
$UserBlackandGrayGalleryPhotos = getUserBlackandGrayGalleryPhotos ($username, $paginatorUserBlackandGrayGallery->limit);
$smarty->assign('paginatorUserBlackandGrayGallery', $paginatorUserBlackandGrayGallery->display_pages());
$smarty->assign('UserBlackandGrayGalleryPhotos', $UserBlackandGrayGalleryPhotos);



$TotalUserCoverUpGallery = getTotalUserCoverUpGallery($username);
$paginatorUserCoverUpGallery = new Paginator;
$paginatorUserCoverUpGallery->items_total = $TotalUserCoverUpGallery;
$paginatorUserCoverUpGallery->mid_range = 5;
$paginatorUserCoverUpGallery->paginate();
$UserCoverUpGalleryPhotos = getUserCoverUpGalleryPhotos ($username, $paginatorUserCoverUpGallery->limit);
$smarty->assign('paginatorUserCoverUpGallery', $paginatorUserCoverUpGallery->display_pages());
$smarty->assign('UserCoverUpGalleryPhotos', $UserCoverUpGalleryPhotos);



$TotalUserPiercingGallery = getTotalUserPiercingGallery($username);
$paginatorUserPiercingGallery = new Paginator;
$paginatorUserPiercingGallery->items_total = $TotalUserPiercingGallery;
$paginatorUserPiercingGallery->mid_range = 5;
$paginatorUserPiercingGallery->paginate();
$UserPiercingGalleryPhotos = getUserPiercingGalleryPhotos ($username, $paginatorUserPiercingGallery->limit);
$smarty->assign('paginatorUserPiercingGallery', $paginatorUserPiercingGallery->display_pages());
$smarty->assign('UserPiercingGalleryPhotos', $UserPiercingGalleryPhotos);



$TotalUserFlashGallery = getTotalUserFlashGallery($username);
$paginatorUserFlashGallery = new Paginator;
$paginatorUserFlashGallery->items_total = $TotalUserFlashGallery;
$paginatorUserFlashGallery->mid_range = 5;
$paginatorUserFlashGallery->paginate();
$UserFlashGalleryPhotos = getUserFlashGalleryPhotos ($username, $paginatorUserFlashGallery->limit);
$smarty->assign('paginatorUserFlashGallery', $paginatorUserFlashGallery->display_pages());
$smarty->assign('UserFlashGalleryPhotos', $UserFlashGalleryPhotos);



$TotalUserPersonalGallery = getTotalUserPersonalGallery($username);
$paginatorUserPersonalGallery = new Paginator;
$paginatorUserPersonalGallery->items_total = $TotalUserPersonalGallery;
$paginatorUserPersonalGallery->mid_range = 5;
$paginatorUserPersonalGallery->paginate();
$UserPersonalGalleryPhotos = getUserPersonalGalleryPhotos ($username, $paginatorUserPersonalGallery->limit);
$smarty->assign('paginatorUserPersonalGallery', $paginatorUserPersonalGallery->display_pages());
$smarty->assign('UserPersonalGalleryPhotos', $UserPersonalGalleryPhotos);


$smarty->assign('media', siteinfo('media'));

$smarty->display('nalog.tpl');
include('footer.php');



?>
